import 'package:dio/dio.dart';

class Request {
  String baseUrl = "http://localhost:1314";

  Future<Response> get(String url) async {
    Response response = await Dio().get(baseUrl + url);
    return response;
  }

  Future<Response> post(String url, var data) async {
    Response response = await Dio().post(baseUrl + url, queryParameters: data);
    return response;
  }
}
